package shaka.core

import junit.framework.Test
import junit.textui.TestRunner

import com.clarkware.junitperf.ConstantTimer
import com.clarkware.junitperf.LoadTest

class AllTestByThread {
	public static Test suite() {
		int users = 20// 執行緒數量
		int iterators = 5// 每個執行緒反覆執行的次數
		com.clarkware.junitperf.Timer timer = new ConstantTimer(10)// 每隔多少時間啟動新的執行緒
		LoadTest loadTest = new LoadTest(AllTests.suite(), users, iterators, timer)
		return loadTest
	}

	public static void main(args){
		TestRunner.run(suite())
	}
}
